// 这个文件专门定义请求参数的类型和相应的类型

// 验证码约束
interface CaptchaApiRes {
    code: number;
    msg: string;
    captcha: Captcha;
}

interface Captcha {
    text: string;
    data: string;
    captchaToken: string;
}
// 删除验证码
interface DelCaptchaReq {
    captchaToken: string;
  }
interface DelCaptchaRes {
    code: number;
    msg: string;
  }
// 登录约束
interface LoginApiReq {
    username: string;
    password: string;
    captcha: string;
    captchaToken: string;
}
interface LoginApiRes {
    code: number;
    msg: string;
    token:string;
    userInfo: [UserInfo];
}
interface UserInfo {
    id: number;
    username: string;
    profile:string;
    identity: number;
    status:number
}

// 退出登录res
interface logoutRes {
  code: number;
  msg: string;
}